// HelpUtils.cpp

#include "StdAfx.h"

#include <HtmlHelp.h>

#include "Common/String/StringConvert.h"
#include "HelpUtils.h"
#include "Common/App/ProgramLocation.h"

static LPCTSTR kHelpFileName = _T("7-zip.chm::/");

using namespace Common;

#ifdef UNDER_CE
void ShowHelpWindow(HWND, LPCWSTR)
{
}
#else
void ShowHelpWindow(HWND hwnd, LPCWSTR topicFile)
{
  CString path;
  if (!App::GetProgramFolderPath(path))
    return;
  path += kHelpFileName;
  path += topicFile;
  HtmlHelp(hwnd, String::GetSystemString(path), HH_DISPLAY_TOPIC, NULL);
}
#endif
